import 'package:flutter/material.dart';

class LeftDrawer extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey[100],
      body: Scaffold(
        
      ),
      // drawer: Container(
      //   color: Colors.white,
      //   padding: EdgeInsets.all(10.0),
      //   child: Column(
      //     mainAxisAlignment: MainAxisAlignment.center,
      //     children: <Widget>[
      //       Text('Item-0-0'),
      //       Text('Item-0-1'),
      //       Text('Item-0-2'),
      //     ],
      //   ),
      // ),
      drawer: Drawer(
        child: ListView(
          padding: EdgeInsets.zero,
          children: <Widget>[
            // DrawerHeader(
            //   child: Text('Header'.toUpperCase()),
            //   decoration: BoxDecoration(
            //     color: Colors.grey[100],
            //     // color: Colors.white,
            //   ),
            // ),
            UserAccountsDrawerHeader(
              currentAccountPicture: CircleAvatar(
                backgroundImage: NetworkImage('https://www.ucacc.com/uploadFile//baseinfo/20190404/4db8ccd827144cac95f6cd077ea0c972.jpeg'),
              ),
              accountName: Text(
                'qm01',
                style: TextStyle( color: Color(0xFF333333), fontWeight: FontWeight.bold),
              ),
              accountEmail: Text('laznrbfe@163.com'),
              decoration: BoxDecoration(
                color: Colors.yellow[400],
              ),
            ),
            ListTile(
              title: Text('收藏', textAlign: TextAlign.left),
              leading: Icon(Icons.collections),
              onTap: () => {
                Navigator.pop(context)
              },
            ),
            ListTile(
              title: Text('设置', textAlign: TextAlign.left),
              leading: Icon(Icons.settings),
              onTap: () => {
                Navigator.pop(context)
              },
            ),
          ],
        ),
      ),
    );
  }
}
